package controller.action;

import java.io.File;

import model.service.ExpertService;

import com.opensymphony.xwork2.ActionSupport;

public class SaveExpert extends ActionSupport{
	private String result;
	private  File file; 
	private String fileFileName;
	private String fileFileContentType;
	private ExpertService expertService;
	
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public File getFile() {
		return file;
	}
	public void setFile(File file) {
		this.file = file;
	}
	public String getFileFileName() {
		return fileFileName;
	}
	public void setFileFileName(String fileFileName) {
		this.fileFileName = fileFileName;
	}
	public ExpertService getExpertService() {
		return expertService;
	}
	public void setExpertService(ExpertService expertService) {
		this.expertService = expertService;
	}
	
	public String saveExpert(File file, String fileFileName){
		result = expertService.ExcelUpload(file, fileFileName);
		return SUCCESS;
	}
}
